package com.frcdi.qms.equipment.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import com.frcdi.qms.masterdata.domain.Method;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备生命周期配置对象 md_equipment_cycle_config
 *
 * @author cell
 * @date 2023-12-12
 */
@ApiModel(value = "设备生命周期配置对象")
public class EquipmentCycleConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long configId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipmentId;

    /** 之前状态 */
    @Excel(name = "之前状态")
    private String beforeStatus;

    /** 之后状态 */
    @Excel(name = "之后状态")
    private String endStatus;

    /** 方法id */
    @Excel(name = "方法id")
    private Long methodId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private Method method;

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public void setConfigId(Long configId)
    {
        this.configId = configId;
    }

    public Long getConfigId()
    {
        return configId;
    }
    public void setEquipmentId(Long equipmentId)
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId()
    {
        return equipmentId;
    }
    public void setBeforeStatus(String beforeStatus)
    {
        this.beforeStatus = beforeStatus;
    }

    public String getBeforeStatus()
    {
        return beforeStatus;
    }
    public void setEndStatus(String endStatus)
    {
        this.endStatus = endStatus;
    }

    public String getEndStatus()
    {
        return endStatus;
    }
    public void setMethodId(Long methodId)
    {
        this.methodId = methodId;
    }

    public Long getMethodId()
    {
        return methodId;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("configId", getConfigId())
            .append("equipmentId", getEquipmentId())
            .append("beforeStatus", getBeforeStatus())
            .append("endStatus", getEndStatus())
            .append("methodId", getMethodId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
